package snafu.utility;

public class Interval {

	private int min;
	private int max;
	
	public Interval(int min, int max) {
		this.min = min;
		this.max = max;
	}
	
	public boolean crosses(Interval interval) {
		return this.min <= interval.max && this.min >= interval.min ||
			   this.max <= interval.max && this.max >= interval.min;
	}
	
}
